package thread;

/**
 * Created with IDEA
 * author:ju bai
 * Date:2021/4/22
 * Time:21:23
 **/
public class ThreadDemo1 {
    public static void main(String[] args) {
        //创建线程
        Thread thread = new Thread(new Runnable() {
            @Override
            public void run() {
                //业务代码
                try {
                    //让程序等待一定时间
                    Thread.sleep(60 * 60 * 1000);
                } catch (InterruptedException e) {
                    e.printStackTrace();
                }
            }
        });
        //启动线程
        thread.start();
    }
}
